local hx__cuntui = fk.CreateSkill {
  name = "hx__cuntui",
}


hx__cuntui:addEffect(fk.Damage, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__cuntui.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local to = data.to
    room:loseHp(player, 1, hx__cuntui.name)
    room:addPlayerMark(player, "@@hx__cuntui_mark-turn", 1)
    room:loseHp(to, 1, hx__cuntui.name)
    room:addPlayerMark(to, "@@hx__cuntui_mark-turn", 1)
  end,
})

hx__cuntui:addEffect(fk.Damaged, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__cuntui.name) and data.from
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local from = data.from
    room:loseHp(player, 1, hx__cuntui.name)
    room:addPlayerMark(player, "@@hx__cuntui_mark-turn", 1)
    room:loseHp(from, 1, hx__cuntui.name)
    room:addPlayerMark(from, "@@hx__cuntui_mark-turn", 1)
  end,
})

hx__cuntui:addEffect("prohibit", {
  name = "#hx__cuntui_prohibit",
  prohibit_use = function(self, player, card)
      return player:getMark("@@hx__cuntui_mark-turn") > 0
  end,
  prohibit_response = function(self, player, card)
      return player:getMark("@@hx__cuntui_mark-turn") > 0
  end,
})

return hx__cuntui